import React, { Component } from 'react'
import './index.css'
import PubSub from 'pubsub-js'

export default class index extends Component {
  state={flag:true}
  token = PubSub.subscribe('mouseover',(msg,data) =>{
    console.log('mouseover',data);
    this.setState({flag:data})
  })
  render() {
    return (
      <div>
        {
          this.state.flag?null:(<div className="content-wapper-content-form-wapper">
          <div className="content-wapper-content-form-wapper-form">
            <ul className="content-wapper-content-form-wapper-ul">
              <li className="content-wapper-content-form-wapper-li">
                  收费的
              </li> 
              <div className="content-wapper-content-form-wapper-button">
                <button className="btn">编辑</button>  <button className="btn3">删除</button>
              </div>
            </ul>
          </div>
        </div>)
        }
      </div>
        
    )
  }
}
